import Router from 'vue-router'

// tabbar 模块
import Home from '../component/tabbar/Home.vue'
import Memder from '../component/tabbar/Memder.vue'
import ShopCar from '../component/tabbar/ShopCar.vue'
import Search from '../component/tabbar/Search.vue'
// Home的模块
import NewsList from '../component/news/NewsList.vue'
import NewsInfo from '../component/news/NewsInfo.vue'
import PhotoList from '../component/photoShare/photoList.vue'
import Target from '../component/photoShare/target.vue'
import ShopInfo from '../component/shops/shopInfo.vue'






export default new Router({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home',component: Home},
    { path: '/memder', component: Memder },
    { path: '/shopCar', component: ShopCar },
    { path: '/search', component: Search },
    { path: '/home/newslist', component: NewsList },
    { path: '/home/newslist/:id', component: NewsInfo },
    { path: '/home/photolist', component: PhotoList },
    { path: '/home/photolist/:id/:gender', component: Target, name:'target'},
    { path: '/home/commodity', component: ShopInfo, name:'shopinfo'}



  ],
  linkActiveClass: 'mui-active'
})